Versions:

  • 0.3.2

jdbgen generates source code and text files from database table metadata using a built-in template engine. The tool, published by Dennis Park, is pointed at a database, reads the table metadata and writes one file per table per template. The output can be model classes, DML statements, mapper XML, documentation or anything else that can be expressed as text. The template engine supports loops, conditionals, name-case decorators, padding, abbreviation rules and custom variables, which makes it possible to adapt the generated files to the naming conventions and structure of a given project. jdbgen ships stock definitions for ten JDBC drivers and can download their jar files from Maven Central with one click. A small H2 sample database with its driver is bundled so that the generator can be tried out without connecting to an existing system. The user interface is available in English, Korean, Spanish, Japanese and Simplified Chinese. The software belongs to the category of code generators and database developer tools and is relevant for Java developers who work with JDBC and frameworks such as MyBatis and want to avoid writing repetitive data access code by hand. Typical use cases include creating entity or model classes for every table of a schema, producing SQL statements and mapper files in a uniform style, and generating table documentation directly from the database. The catalog lists jdbgen in version 0.3.2.

Tags: